package com.nefu.editor.core.mapper;

import com.nefu.editor.core.mapper.provider.OrderProvider;
import com.nefu.editor.core.model.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chenchenT
 * @date : 18-11-14
 * @since : java 8
 */
@Mapper
@Repository
public interface OrderMapper {

    /**
     * 获取订单列表
     * @param order
     * @return List<Order>
     */
    @SelectProvider(type = OrderProvider.class, method = "selectOrderByCondition")
    List<Order> selectOrderByCondition(Order order);

}
